package com.yan.command;

public abstract class NamedGroup implements Group {
    protected String groupName;

    public NamedGroup(String groupName) {
        this.groupName = groupName;
    }

    @Override
    public void prepare() {
        System.out.println(this.groupName + "组#准备~");
    }

    @Override
    public void add() {
        System.out.println(this.groupName + "组#增加~");
    }

    @Override
    public void delete() {
        System.out.println(this.groupName + "组#删除~");
    }

    @Override
    public void change() {
        System.out.println(this.groupName + "组#变更~");
    }

    @Override
    public void plan() {
        System.out.println(this.groupName + "组#计划~");
    }
}
